package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ProductionPlan;
import com.nbsaas.boot.manufacturing.api.domain.simple.ProductionPlanSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 生产计划-列表对象转换器
*/

public class ProductionPlanSimpleConvert implements Converter<ProductionPlanSimple, ProductionPlan> {




@Override
public ProductionPlanSimple convert(ProductionPlan source) {
    ProductionPlanSimple result = new ProductionPlanSimple();

                result.setNote(source.getNote());
                result.setPlanPeriod(source.getPlanPeriod());
                result.setCompletionRate(source.getCompletionRate());
                result.setActualHours(source.getActualHours());
                result.setPlanSource(source.getPlanSource());
                result.setProcessRouteId(source.getProcessRouteId());
                result.setActualQuantity(source.getActualQuantity());
                result.setId(source.getId());
                result.setDeliveryDate(source.getDeliveryDate());
                result.setPlanEndDate(source.getPlanEndDate());
                result.setProductionLineId(source.getProductionLineId());
                result.setQualityRequirements(source.getQualityRequirements());
                result.setActualCost(source.getActualCost());
                result.setLastDate(source.getLastDate());
                result.setProductSkuId(source.getProductSkuId());
                result.setAuditOpinion(source.getAuditOpinion());
                result.setPlanType(source.getPlanType());
                result.setProductId(source.getProductId());
                result.setStandardHours(source.getStandardHours());
                result.setAuditor(source.getAuditor());
                result.setPlannedQuantity(source.getPlannedQuantity());
                result.setCompletedQuantity(source.getCompletedQuantity());
                result.setPriority(source.getPriority());
                result.setAddDate(source.getAddDate());
                result.setCustomerName(source.getCustomerName());
                result.setStandardCost(source.getStandardCost());
                result.setPlanNo(source.getPlanNo());
                result.setAuditTime(source.getAuditTime());
                result.setName(source.getName());
                result.setWorkshopId(source.getWorkshopId());
                result.setAuditStatus(source.getAuditStatus());
                result.setSourceOrderNo(source.getSourceOrderNo());
                result.setPlanStartDate(source.getPlanStartDate());
                result.setStatus(source.getStatus());
                result.setSpecialRequirements(source.getSpecialRequirements());


    return result;
}

}